Holds information about a failure when trying to import an object using an Exporter. More...
Public Member Functions | |
ExportError () | |
ExportError (const nkMemory::StringView &errorDesc, const nkMemory::StringView &errorInfos, unsigned int index) | |
~ExportError () | |
void | setErrorDesc (const nkMemory::StringView &desc) |
void | setErrorInfo (const nkMemory::StringView &infos) |
void | setIndex (unsigned int index) |
void | setActivated (bool value) |
const nkMemory::StringView & | getErrorDesc () const |
const nkMemory::StringView & | getErrorInfo () const |
unsigned int | getIndex () const |
bool | isActivated () const |
Holds information about a failure when trying to import an object using an Exporter.
nkExport::ExportError::ExportError | ( | ) |
Default constructor.
nkExport::ExportError::ExportError | ( | const nkMemory::StringView & | errorDesc, |
const nkMemory::StringView & | errorInfos, | ||
unsigned int | index | ||
) |
Constructor allowing to populate all data at once.
errorDesc | A message describing the error. For instance, "parsing error". |
errorInfos | Bonus information about the error. For instance, a trace of where a parsing error occurred. |
index | An index pointing the error in the source. |
nkExport::ExportError::~ExportError | ( | ) |
Destructor.
void nkExport::ExportError::setErrorDesc | ( | const nkMemory::StringView & | desc | ) |
Allows to set a new error description.
desc | The description of the error. |
void nkExport::ExportError::setErrorInfo | ( | const nkMemory::StringView & | infos | ) |
Allows to set new bonus information for the error.
infos | Bonus information about the error. |
void nkExport::ExportError::setIndex | ( | unsigned int | index | ) |
Allows to set the index at which the error as been found, in the sources.
index | The new index. |
void nkExport::ExportError::setActivated | ( | bool | value | ) |
Allows to set whether the error has been triggered or not.
value | Whether the error is flagged as being triggered (true) or not (false). |
const nkMemory::StringView& nkExport::ExportError::getErrorDesc | ( | ) | const |
const nkMemory::StringView& nkExport::ExportError::getErrorInfo | ( | ) | const |
unsigned int nkExport::ExportError::getIndex | ( | ) | const |
bool nkExport::ExportError::isActivated | ( | ) | const |